﻿@inherits System.Web.Mvc.WebViewPage<TaskViewModel>
@{
    Layout = "";
}
@{
    var id = "task" + @Model.Id;
    var taskClass = Model.Status == TaskStatuses.Finished ? "finished" : 
                        Model.Status == TaskStatuses.Active ? "active" : "notstarted";
}
<div class="task @taskClass" id="@id">
    <div class="content">
        @Model.Text
    </div>
    <div class="actions" style="display: none;">
        <a href="#" class="icon delete"><span title="Delete Task"></span></a>
        <a href="#" class="icon edit"><span title="Edit Task"></span></a>
    </div>
</div>
